home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / CHIP Kasım 1998.iso / DRIVERS / CD-Rom / 220x.exe / CF2.BAT < prev    next >
DOS Batch File  |  1993-01-12  |  2KB  |  110 lines

  1. ECHO OFF
  2. cls
  3. prompt $p$g
  4. if "%1" == "?" goto usage
  5.  
  6. if "%1" == "at" goto inst
  7. if "%1" == "AT" goto inst
  8. if "%1" == "xt" goto inst
  9. if "%1" == "XT" goto inst
  10.  
  11. if "%1" == "2at" goto inst
  12. if "%1" == "2AT" goto inst
  13. if "%1" == "2xt" goto inst
  14. if "%1" == "2XT" goto inst
  15.  
  16. if "%1" == "3at" goto inst
  17. if "%1" == "3AT" goto inst
  18. if "%1" == "3xt" goto inst
  19. if "%1" == "3XT" goto inst
  20.  
  21. if "%1" == "4at" goto inst
  22. if "%1" == "4AT" goto inst
  23. if "%1" == "4xt" goto inst
  24. if "%1" == "4XT" goto inst
  25.  
  26. sel_seq
  27.  
  28. :inst
  29.  
  30. ECHO OFF
  31. IF EXIST AUTOEXEC.BAT    DEL AUTOEXEC.BAT
  32. IF EXIST CONFIG.SYS    DEL CONFIG.SYS
  33. IF EXIST *.NEW        DEL *.NEW
  34.  
  35. CLS
  36. ECHO\
  37. ECHO NOTICE: If the DOS version is 5.0, MS-DOS Extensions is ignored
  38. ECHO         as Incorrect DOS version.
  39. ECHO\
  40.  
  41. ECHO AUTOEXEC.BAT and CONFIG.SYS files will be modified.  Wait for a while.
  42. IF EXIST CONFIG.SYS    del config.SYS
  43. IF EXIST AUTOEXEC.BAT    del autoexec.BAT
  44. ECHO\
  45.  
  46. ECHO ON
  47. COPY C:\AUTOEXEC.BAT
  48. COPY C:\CONFIG.SYS
  49. ECHO OFF
  50.  
  51. shell3 del_DVR
  52. shell3 del_MSCD
  53.  
  54. ECHO\
  55. ECHO ON
  56. COPY CONFIG.NEW+CONFIG.%1 CONFIG.NEW
  57. ECHO OFF
  58.  
  59. shell3 app A:\%2
  60. shell3 m_sys A:\%2
  61.  
  62. :take_cb
  63. CLS
  64. ECHO Some files will be copied from Library disk to the target disk.
  65. ECHO Confirm that the target disk is inserted in the floppy disk
  66. ECHO drive A.
  67. ECHO You can install Sony MS-DOS CD-ROM Extentions on the floppy disk.
  68.  
  69. ECHO\
  70. pause
  71.  
  72. if "%2" == "" goto make_cb
  73. ECHO ON
  74. MD A:\%2
  75. ECHO OFF
  76.  
  77. :make_cb
  78. ECHO ON
  79. COPY AUTOEXEC.BAT+AUTOEXEC.ADD A:\AUTOEXEC.BAT
  80. COPY CONFIG.SYS A:\
  81. COPY SONY_CDU.SYS A:\%2
  82. COPY MSCDEX.EXE A:\%2
  83.  
  84. ECHO OFF
  85. IF EXIST AUTOEXEC.BAT    DEL AUTOEXEC.BAT
  86. IF EXIST CONFIG.SYS    DEL CONFIG.SYS
  87. IF EXIST *.NEW        DEL *.NEW
  88.  
  89.  
  90. LAST_MSG A %2
  91. goto exit
  92.  
  93. :usage
  94. echo\
  95. echo\
  96. echo     USAGE...
  97. echo\
  98. echo     CF2 XX [Option] and Enter
  99. echo\
  100. echo         XX: Your computer type, AT or XT
  101. echo             Option: Sub Directory
  102. echo\
  103. echo\
  104. echo     CF2 ? and Enter         ; Display this message.
  105.  
  106. echo\
  107. echo\
  108. :exit
  109.  
  110.